// unique namespace for the visualization object
var visual = {};

// Class constructor. Parameter container is a DOM element on the client that
// that will contain the visualization.
visual.dependencyDiagram = function(container) {
  this.containerElement = container;
}

// Main drawing logic.
// Parameters:
//   data is data to display, type google.visualization.DataTable.

visual.dependencyDiagram.prototype.draw = function(data) {

  var obj = {};
    var params = { menu: "false" };
	var width =  800;
	var height =  600;
    obj.data=encodeURIComponent(data.toJSON());
	_IG_EmbedCachedFlash("http://dependencydiagram.googlecode.com/svn/trunk/html/DependencyDiagram.swf", this.containerElement.id, {
      swf_version: 9,
      id: "flashid",
      width: 800,
      height: 600,
	  flashVars: 'data=' + data.toJSON()
    })
    
}

